package com.example.conf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 会员等级
 * </p>
 *
 * @author wpdcn
 * @since 2020-09-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("member_level")
@ApiModel(value="MemberLevelEntity对象", description="会员等级")
public class MemberLevelEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Column(comment = "id主键")
    @ApiModelProperty(value = "id主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Column(comment = "等级名称")
    @ApiModelProperty(value = "等级名称")
    private String levelName;

    @Column(comment = "等级编码")
    @ApiModelProperty("等级编码")
    private String levelCode;

    @Column(comment = "描述")
    @ApiModelProperty(value = "描述")
    private String remarks;

    @Column(comment = "门槛金额（消费总金额）")
    @ApiModelProperty(value = "门槛金额（消费总金额）")
    private Double thresholdMoney;

    @Column(comment = "该等级折扣")
    @ApiModelProperty(value = "该等级折扣")
    private Double discount;

    @Column(comment = "该等级返积分率")
    @ApiModelProperty(value = "该等级返积分率")
    private Double score;

    @Column(comment = "创建人")
    private Long createBy;

    @Column(comment = "创建时间")
    private LocalDateTime createTime;

    @Column(comment = "修改人")
    private Long updateBy;

    @Column(comment = "修改时间")
    private LocalDateTime updateTime;


}
